home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form7
- BorderStyle = 3 'Fixed Dialog
- Caption = "Play file"
- ClientHeight = 1080
- ClientLeft = 45
- ClientTop = 345
- ClientWidth = 2520
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1080
- ScaleWidth = 2520
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 0
- TabIndex = 2
- Top = 360
- Width = 2535
- End
- Begin VB.CommandButton Command2
- Caption = "Cancel"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- TabIndex = 1
- Top = 720
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "Ok"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 0
- TabIndex = 0
- Top = 720
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "List the WAV dir. and filename"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 0
- TabIndex = 3
- Top = 0
- Width = 2535
- End
- Attribute VB_Name = "Form7"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
- Private Sub Command1_Click()
- Dim filename As String
- Dim rc As Long
- filename = (Text1.Text)
- rc = sndPlaySound(filename, 1)
- End Sub
- Private Sub Command2_Click()
- Unload Form7
- End Sub
-